import requests


class IhrmLogin():
    @classmethod
    def login(cls, login_data):
        resp = requests.post(url="http://ihrm-test.itheima.net/api/sys/login",
                             json=login_data)
        return resp


if __name__ == '__main__':
    resp = IhrmLogin.login({"mobile": "13800000002", "password": "123456"})
    print(resp.json())
